
import Relay from "react-relay";
export default class AcceptGoodsOrderMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { acceptGoodsOrder }`;
    }

    getVariables() {
        return {
            argsInput: {
                goodsInfo:this.props.goodsInfo,
                orderId:this.props.orderId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on acceptGoodsOrderPayload  {
            acceptGoodsOrder {
                errorCode
                value
                totalResult
                id
               
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on acceptGoodsOrderPayload  {
                    acceptGoodsOrder {
                        errorCode
                        value
                        totalResult
                        id
                       
                    }
                 }
            `]
        }];
    }

}


